
//------------------------------------------------------------------------------

namespace Apps.Models
{
     using System.ComponentModel.DataAnnotations.Schema;
    using System;
    using System.Collections.Generic;
    
    [Table("SPL_WAREHOUSE")] 
     public partial class Spl_Warehouse
    {
        public Spl_Warehouse()
        {
            this.Spl_WarehouseWarrantDetails = new HashSet<Spl_WarehouseWarrantDetails>();
            this.Spl_WarehouseWarrant = new HashSet<Spl_WarehouseWarrant>();
            this.Spl_WarehouseAllocationDetails = new HashSet<Spl_WarehouseAllocationDetails>();
        }
    
        [Column("ID"), System.ComponentModel.DataAnnotations.Key] 
     public string Id { get; set; }
        [Column("NAME")] 
     public string Name { get; set; }
        [Column("CODE")] 
     public string Code { get; set; }
        [Column("ISDEFAULT")] 
     public bool IsDefault { get; set; }
        [Column("CONTACTPERSON")] 
     public string ContactPerson { get; set; }
        [Column("CONTACTPHONE")] 
     public string ContactPhone { get; set; }
        [Column("ADDRESS")] 
     public string Address { get; set; }
        [Column("REMARK")] 
     public string Remark { get; set; }
        [Column("ENABLE")] 
     public bool Enable { get; set; }
        [Column("CREATETIME")] 
     public System.DateTime CreateTime { get; set; }
        [Column("WAREHOUSECATEGORYID")] 
     public string WarehouseCategoryId { get; set; }
    
        public virtual Spl_WarehouseCategory Spl_WarehouseCategory { get; set; }
        public virtual ICollection<Spl_WarehouseWarrantDetails> Spl_WarehouseWarrantDetails { get; set; }
        public virtual ICollection<Spl_WarehouseWarrant> Spl_WarehouseWarrant { get; set; }
        public virtual ICollection<Spl_WarehouseAllocationDetails> Spl_WarehouseAllocationDetails { get; set; }
    }
}
